import request from '@/utils/request'

// 查询餐厅列表
export function listCantee(query) {
  return request({
    url: '/zhhq/cantee/list',
    method: 'get',
    params: query
  })
}

// 查询所有餐厅列表
export function listCanteeAll() {
  return request({
    url: '/zhhq/cantee/listAll',
    method: 'get',
  })
}

// 查询餐厅详细
export function getCantee(restauranId) {
  return request({
    url: '/zhhq/cantee/' + restauranId,
    method: 'get'
  })
}

// 新增餐厅
export function addCantee(data) {
  return request({
    url: '/zhhq/cantee',
    method: 'post',
    data: data
  })
}

// 修改餐厅
export function updateCantee(data) {
  return request({
    url: '/zhhq/cantee',
    method: 'put',
    data: data
  })
}

// 删除餐厅
export function delCantee(restauranId) {
  return request({
    url: '/zhhq/cantee/' + restauranId,
    method: 'delete'
  })
}
